<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>1.v-show</title>
    <!-- 引入Vue -->
    <script type="text/javascript" src="../../js/vue.js"></script>
  </head>
  <body>
    <!-- 准备好一个容器-->
    <div id="demo">
      <h2>前端圈的第{{n}}个框架是</h2>
      <button @click="n+=1">点我+1</button>
      <h3 v-show="n === 1">Angular</h3>
      <h3 v-show="n === 2">React</h3>
      <h3 v-show="n === 3">Vue</h3>
      <h3 v-show="n > 3">未知</h3>
    </div>

    <script t v-show=""ype="text/javascript">
      new Vue({
        el:'#demo',
        data:{
          n:1
        }
      })
    </script>
  </body>
</html>